<?php
	/**
	 *	KLF Framework
	 *
	 *	Written by Kristian Oye <kristianoye@gmail.com> on Oct 22, 2011
	 *	Copyright (C) 2010-2011
	 */
	namespace KLF\System\Errors
	{
		/**
		 *  Class KEventException
		 *
		 *  This exception fires when an object attempts to interact with a non-existant event type.
		 *
		 *  @package KLF\System\Errors
		 *  @access public
		 *  @author Kristian Oye <kristianoye@gmail.com>
		 *  @since 0.1
		 */
		class KEventException extends KException
		{
			public function __construct($eventName, $obj)
			{
				$className = get_class($obj);
				
				parent::__construct("Class '$className' does not contain event '$eventName'");
			}
		}
	}